#include "widget.h"
#include "ui_widget.h"

#include <QPUshButton>
#include <QVBoxLayout>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    QPushButton *button1 = new QPushButton("hello");
    QPushButton *button2 = new QPushButton("world");
    QPushButton *button3 = new QPushButton("funney");

    QVBoxLayout *layout = new QVBoxLayout();
    layout->addWidget(button1);
    layout->addWidget(button2);
    layout->addWidget(button3);

    this->setLayout(layout);
}

Widget::~Widget()
{
    delete ui;
}

